package com.jacklin.repository;

import com.jacklin.entity.ProductInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Author:JackLin
 * @Create 2019/3/25 20:31
 */
public interface ProductInfoRepository extends JpaRepository<ProductInfo,String> {

    /*通过商品的状态来查询上架商品*/
    List<ProductInfo> findByProductStatus(Integer productStatus);
}
